import request from '@/utils/request'

// 查询监测站点列表
export function listDispatchMonitoringSites(query) {
  return request({
    url: '/system/dispatchMonitoringSites/list',
    method: 'get',
    params: query
  })
}

// 查询监测站点详细
export function getDispatchMonitoringSites(monitoringSitesId) {
  return request({
    url: '/system/dispatchMonitoringSites/' + monitoringSitesId,
    method: 'get'
  })
}

// 新增监测站点
export function addDispatchMonitoringSites(data) {
  return request({
    url: '/system/dispatchMonitoringSites',
    method: 'post',
    data: data
  })
}

// 修改监测站点
export function updateDispatchMonitoringSites(data) {
  return request({
    url: '/system/dispatchMonitoringSites',
    method: 'put',
    data: data
  })
}

// 删除监测站点
export function delDispatchMonitoringSites(monitoringSitesId) {
  return request({
    url: '/system/dispatchMonitoringSites/' + monitoringSitesId,
    method: 'delete'
  })
}
